import { request } from './request';

//导出login方法，供其它地方使用
export function test1(businessid) {
    let url = "/FoodController/listFoodByBusinessId/"
    return request({
        url: url.concat(businessid),
        method: 'get',
    })
}
export function test2(data) { //post接收的对象一定需要 命名为data，这样request.ts的transformRequest配置才可以识别
    let url = "/UserController/getUserByIdByPass"
    return request({
        url: url,
        method: 'post',
        data
    })
}
export function test3(data) { //如果后端是@RequestParam的话，直接改成post方法（前后端都是
    let url = "/CartController/removeCart"
    return request({
        url: url,
        method: 'post',
        data
    })
}

